import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import echarts from 'echarts'
import ElementUI from 'element-ui'
import '../src/assets/css/global.css'
import 'element-ui/lib/theme-chalk/index.css'
import axios from "axios"
import moment from 'moment'
Vue.use(ElementUI)

Vue.use(moment)
axios.defaults.baseURL="/api"; //前缀

Vue.prototype.$echarts = echarts
Vue.config.productionTip = false

// 挂载 axios（相当于声明了一个vue的全局变量，命名，this.$http就可以使用了）
Vue.prototype.$http = axios
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
